export class Server {
    cpu = new Cpu();
    mem = new Mem();
    jvm = new Jvm();
    sys = new Sys();
    sysFiles = new Array<SysFile>();
}

export class Cpu {
    cpuNum!: number;
    total!: number;
    sys!: number;
    used!: number;
    wait!: number;
    free!: number;
}

export class Jvm {
    total!: number;
    max!: number;
    free!: number;
    version!: string;
    home!: string;
    used?: number;
    usage?: number;
    name?: string;
    startTime?: string;
    runTime?: number[];
    inputArgs?: string;
}

export class Mem {
    total!: number;
    used!: number;
    free!: number;
    usage?: number;
}

export class Sys {
    computerName!: string;
    computerIp!: string;
    userDir!: string;
    osName!: string;
    osArch!: string;
}

export class SysFile {
    dirName!: string;
    sysTypeName!: string;
    typeName!: string;
    total!: string;
    free!: string;
    used!: string;
    usage!: number;
}